From 926e680aadde774557b92a4a3e9457f63e963e84 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 19 Dec 2014 11:17:02 +0000 Subject: [PATCH] EFI: suppress bogus loader warning This was accidentally lost in commit fbc3d9a220 ("EFI: add efi_arch_handle_cmdline() for processing commandline"), leading to the "Unknown command line option" warning being printed whenever options get passed to the core hypervisor or the Dom0 kernel. Signed-off-by: Jan Beulich Release-Acked-by: Konrad Rzeszutek Wilk Signed-off-by: Konrad Rzeszutek Wilk --- xen/common/efi/boot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/common/efi/boot.c b/xen/common/efi/boot.c index c68efdb2b5..ac6881ea93 100644 --- a/xen/common/efi/boot.c +++ b/xen/common/efi/boot.c @@ -311,6 +311,7 @@ static unsigned int __init get_argv(unsigned int argc, CHAR16 **argv, ++argc; else if ( prev && wstrcmp(prev, L"--") == 0 ) { + --argv; if ( options ) *options = cmdline; break; -- 2.30.2